<template>
  <div>
    <router-view />
  </div>
</template>

<script>
  export default {
    data () {
      return {
        tabs: {
          items: [
            {
              key: '1',
              title: '实时数据'
            },
            {
              key: '2',
              title: '历史数据'
            },
           
          ],
          active: () => {
            switch (this.$route.path) {
              case '/wfinfo/monitoring/dataMonitoring':
                return '1'
              case '/wfinfo/real/DataAnalysis':
                return '2'
              default:
                return '1'
            }
          },
          callback: (key) => {
            switch (key) {
              case '1':
                this.$router.push('/wfinfo/real/RealTimeData')
                break
              case '2':
                this.$router.push('/wfinfo/real/DataAnalysis')
                break
              default:
                this.$router.push('/workplace')
            }
          }
        },
        search: true
      }
    },
    computed: {

    },
    methods: {
    }
  }
</script>

<style lang="less" scoped>

</style>